import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  globalStyle: {
    navigationStyle: 'custom',
    navigationBarTitleText: '湖湘结核助手',
    navigationBarBackgroundColor: '#f8f8f8',
    navigationBarTextStyle: 'black',
    backgroundColor: '#FFFFFF',
  },
  easycom: {
    autoscan: true,
    custom: {
      '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
        'z-paging/components/z-paging$1/z-paging$1.vue',
			'^yl-(.*)': '@/components/yl-$1/yl-$1.vue'
    },
  },
  tabBar: {
    color: '#999999',
    selectedColor: '#007aff',
    backgroundColor: '#F8F8F8',
    borderStyle: 'black',
    height: '50px',
    fontSize: '10px',
    iconWidth: '24px',
    spacing: '3px',
    "list": [
      {
        "iconPath": "static/tabbar/home.png",
        "selectedIconPath": "static/tabbar/homeHL.png",
        "pagePath": "pages/index/index",
        "text": "首页"
      },
      {
        "iconPath": "static/tabbar/detect.png",
        "selectedIconPath": "static/tabbar/detectHL.png",
        "pagePath": "pages/detect/detect",
        "text": "结核检测"
      },
      {
        "iconPath": "static/tabbar/record.png",
        "selectedIconPath": "static/tabbar/recordHL.png",
        "pagePath": "pages/record/record",
        "text": "检测记录"
      },
      {
        "iconPath": "static/tabbar/my.png",
        "selectedIconPath": "static/tabbar/myHL.png",
        "pagePath": "pages/my/my",
        "text": "我的"
      }
    ]
  },
	pages: [
	  {
	    "path": "pages/index/index",
	    "type": "home"
	  },
	  {
	    "path": "pages/article/article",
	    "type": "page",
			"style": {
				"navigationStyle": "default",
				"navigationBarTitleText": "文章详情"
			}
	  },
	  {
	    "path": "pages/detect/detect",
	    "type": "page"
	  },
	  {
	    "path": "pages/login/login",
	    "type": "page"
	  },
	  {
	    "path": "pages/my/my",
	    "type": "page"
	  },
	  {
	    "path": "pages/my/userinfo",
	    "type": "page",
			"style": {
				"navigationStyle": "default",
				"navigationBarTitleText": "个人信息"
			}
	  },
	  {
	    "path": "pages/questionnaire/detail",
	    "type": "page",
			"style": {
				"navigationStyle": "default",
				"navigationBarTitleText": "量表自测"
			}
	  },
	  {
	    "path": "pages/questionnaire/questionnaire",
	    "type": "page",
			"style": {
				"navigationStyle": "default",
				"navigationBarTitleText": "问卷量表"
			}
	  },
	  {
	    "path": "pages/questionnaire/result",
	    "type": "page",
			"style": {
				"navigationStyle": "default",
				"navigationBarTitleText": "自测结果"
			}
	  },
	  {
	    "path": "pages/record/detail",
	    "type": "page",
			"style": {
				"navigationStyle": "default",
				"navigationBarTitleText": "检测结果"
			}
	  },
	  {
	    "path": "pages/record/record",
	    "type": "page"
	  }
	],
	"subPackages": []
})
